<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>web房地产估值</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="robots" content="all,follow">
    <!-- Bootstrap CSS-->
    <link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome CSS-->
    <link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.min.css">
    <!-- Fontastic Custom icon font-->
    <link rel="stylesheet" href="css/fontastic.css">
    <!-- theme stylesheet-->
    <link rel="stylesheet" href="css/style.default.css" id="theme-stylesheet">
    <!-- Custom stylesheet - for your changes-->
    <link rel="stylesheet" href="css/custom.css">
    <!-- Favicon-->
    <link rel="shortcut icon" href="img/r_mirror.png">
    <link rel="stylesheet" type="text/css" href="css/themes/default/easyui.css" />
    <!-- Tweaks for older IEs--><!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
    <style type="text/css">
       	::-webkit-scrollbar {/*滚动条整体样式*/
        width: 1px;     /*高宽分别对应横竖滚动条的尺寸*/
        height: 1px;}
    ::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
        border-radius: 10px;
         -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
        background: #535353;}
    ::-webkit-scrollbar-track {/*滚动条里面轨道*/
        -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
        border-radius: 10px;
        background: #EDEDED;}
     </style>
  </head>
  <body >
    <div class="page">
      <!-- Main Navbar-->
      <header class="header">
        <nav class="navbar">
          <!-- Search Box-->
          <div class="search-box">
            <button class="dismiss"><i class="icon-close"></i></button>
            <form id="searchForm" action="#" role="search">
              <input type="search" placeholder="What are you looking for..." class="form-control">
            </form>
          </div>
          <div class="container-fluid">
            <div class="navbar-holder d-flex align-items-center justify-content-between">
              <!-- Navbar Header-->
              <div class="navbar-header">
                <!-- Navbar Brand --><a href="main.html" class="navbar-brand d-none d-sm-inline-block">
                  <div class="brand-text d-none d-lg-inline-block"><strong>WEB </strong><span>EVs</span></div>
                  <div class="brand-text d-none d-sm-inline-block d-lg-none"><strong>ac</strong></div></a>
                <!-- Toggle Button--><a id="toggle-btn" href="#" class="menu-btn active"><span></span><span></span><span></span></a>
              </div>
              <!-- Navbar Menu -->
              <ul class="nav-menu list-unstyled d-flex flex-md-row align-items-md-center">
                <!-- Search-->
                <li class="nav-item d-flex align-items-center"><a id="search" href="#"><i class="icon-search"></i></a></li>
                <!-- Notifications-->
                <li class="nav-item dropdown"> <a id="notifications" rel="nofollow" data-target="#" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link"><i class="fa fa-bell-o"></i><span class="badge bg-red badge-corner">12</span></a>
                  <ul aria-labelledby="notifications" class="dropdown-menu">
                    <li><a rel="nofollow" href="#" class="dropdown-item"> 
                        <div class="notification">
                          <div class="notification-content"><i class="fa fa-envelope bg-green"></i>You have 6 new messages </div>
                          <div class="notification-time"><small>4 minutes ago</small></div>
                        </div></a></li>
                    <li><a rel="nofollow" href="#" class="dropdown-item"> 
                        <div class="notification">
                          <div class="notification-content"><i class="fa fa-twitter bg-blue"></i>You have 2 followers</div>
                          <div class="notification-time"><small>4 minutes ago</small></div>
                        </div></a></li>
                    <li><a rel="nofollow" href="#" class="dropdown-item"> 
                        <div class="notification">
                          <div class="notification-content"><i class="fa fa-upload bg-orange"></i>Server Rebooted</div>
                          <div class="notification-time"><small>4 minutes ago</small></div>
                        </div></a></li>
                    <li><a rel="nofollow" href="#" class="dropdown-item"> 
                        <div class="notification">
                          <div class="notification-content"><i class="fa fa-twitter bg-blue"></i>You have 2 followers</div>
                          <div class="notification-time"><small>10 minutes ago</small></div>
                        </div></a></li>
                    <li><a rel="nofollow" href="#" class="dropdown-item all-notifications text-center"> <strong>view all notifications                                            </strong></a></li>
                  </ul>
                </li>
                <!-- Messages                        -->
                <li class="nav-item dropdown"> <a id="messages" rel="nofollow" data-target="#" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link"><i class="fa fa-envelope-o"></i><span class="badge bg-orange badge-corner">10</span></a>
                  <ul aria-labelledby="notifications" class="dropdown-menu">
                    <li><a rel="nofollow" href="#" class="dropdown-item d-flex"> 
                        <div class="msg-profile"> <img src="img/avatar-1.jpg" alt="..." class="img-fluid rounded-circle"></div>
                        <div class="msg-body">
                          <h3 class="h5">Jason Doe</h3><span>Sent You Message</span>
                        </div></a></li>
                    <li><a rel="nofollow" href="#" class="dropdown-item d-flex"> 
                        <div class="msg-profile"> <img src="img/avatar-2.jpg" alt="..." class="img-fluid rounded-circle"></div>
                        <div class="msg-body">
                          <h3 class="h5">Frank Williams</h3><span>Sent You Message</span>
                        </div></a></li>
                    <li><a rel="nofollow" href="#" class="dropdown-item d-flex"> 
                        <div class="msg-profile"> <img src="img/avatar-3.jpg" alt="..." class="img-fluid rounded-circle"></div>
                        <div class="msg-body">
                          <h3 class="h5">Ashley Wood</h3><span>Sent You Message</span>
                        </div></a></li>
                    <li><a rel="nofollow" href="#" class="dropdown-item all-notifications text-center"> <strong>Read all messages   </strong></a></li>
                  </ul>
                </li>
                <!-- Languages dropdown    -->
                <li class="nav-item dropdown"><a id="languages" rel="nofollow" data-target="#" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link language dropdown-toggle"><img src="img/flags/16/GB.png" alt="English"><span id="nickname" class="d-none d-sm-inline-block">admin</span></a>
                  <ul aria-labelledby="languages" class="dropdown-menu">
                    <li><a rel="nofollow" href="#" class="dropdown-item"> <img src="img/flags/16/DE.png" alt="English" class="mr-2">个人中心</a></li>
                    <li><a rel="nofollow" href="#" class="dropdown-item"> <img src="img/flags/16/FR.png" alt="English" class="mr-2">修改密码</a></li>
                  </ul>
                </li>
                <!-- Logout    -->
                <li class="nav-item"><a id="logout" href="/login.spr/logout" class="nav-link logout"> <span class="d-none d-sm-inline">Logout</span><i class="fa fa-sign-out"></i></a></li>
              </ul>
            </div>
          </div>
        </nav>
      </header>
      <div class="page-content d-flex align-items-stretch"> 
        <!-- Side Navbar -->
        <nav class="side-navbar easyui-accordion" >
         
          <span class="heading" ><i class="icon-presentation" style="font-size: 1.5em;font-weight:bold;color: #2f333e;font-family: '微软雅黑';">&nbsp&nbsp菜&nbsp&nbsp单</i></span>
          <!--
          	作者：yang.xing
          	时间：2019-01-23
          	描述：侧边菜单栏
          -->
          <ul  >
          	<li  style="margin-top: 2px;"><a class="lt" href="#projectItem" aria-expanded="false" data-toggle="collapse"> <i class="icon-bars"></i>项目管理 </a>
		          	<ul id="projectItem" class="collapse list-unstyled" >
		          		<li data-link="project_list.html" iframe="0"><a class="icon-search defaulttab" >&nbsp&nbsp&nbsp&nbsp查看项目</a></li>
		          		<li data-link="new_project_form.html" iframe="0"><a class="icon-flask" >&nbsp&nbsp&nbsp&nbsp新建项目</a></li>
		          		<li  data-link="charts.html" iframe="0"><a class="icon-page" >&nbsp&nbsp&nbsp&nbsp项目统计</a></li>
		          	</ul>
		         </li>
             <li   style="margin-top: 2px;" ><a class="lt" href="#judgeItem" aria-expanded="false" data-toggle="collapse"> <i class="icon-flask"></i>评估管理 </a>
             		<ul id="judgeItem" class="collapse list-unstyled">
             			<li><a class="icon-search" data-link="test.html" iframe="1">&nbsp&nbsp&nbsp&nbsp查看评估</a></li>
             			<li><a class="icon-website" data-link="test.html" iframe="1">&nbsp&nbsp&nbsp&nbsp历史版本</a></li>
             		</ul>
             </li>
             <li   style="margin-top: 2px;" ><a class="lt" href="#baseItem" aria-expanded="false" data-toggle="collapse"> <i class="icon-form"></i>基础信息管理 </a>
             		<ul id="baseItem" class="collapse list-unstyled">
             			<li><a class="icon-website" data-link="test.html" iframe="1">&nbsp&nbsp&nbsp&nbsp评估报告模板管理</a></li>
             			<li style="display: none;"><a class="icon-website" data-link="test.html" iframe="1">&nbsp&nbsp&nbsp&nbsp预留</a></li>
             		</ul>
             </li>
             <li   style="margin-top: 2px;" ><a class="lt" href="#userItem" aria-expanded="false" data-toggle="collapse"> <i class="icon-user"></i>用户管理 </a>
             		<ul id="userItem" class="collapse list-unstyled">
             			<li><a class="icon-screen" data-link="test.html" iframe="1">&nbsp&nbsp&nbsp&nbsp企业信息管理</a></li>
             			<li><a class="icon-user" data-link="test.html" iframe="1">&nbsp&nbsp&nbsp&nbsp员工管理</a></li>
             			<li data-link="control_center.html" iframe="0"><a class="icon-check"  >&nbsp&nbsp&nbsp&nbsp系统管理</a></li>
             		</ul>
             </li>
             <li   style="margin-top: 2px;" ><a class="lt" href="#powerItem" aria-expanded="false" data-toggle="collapse"> <i class="icon-close"></i>权限管理 </a>
             		<ul id="powerItem" class="collapse list-unstyled">
             			<li data-link="roles.html"><a class="icon-grid"  iframe="1">&nbsp&nbsp&nbsp&nbsp角色管理</a></li>
             			<li data-link="role_form.html" ><a class="icon-list" iframe="1">&nbsp&nbsp&nbsp&nbsp新建角色</a></li>
             		</ul>
             </li>
              <li   style="margin-top: 2px;" ><a class="lt" href="#exampleItem" aria-expanded="false" data-toggle="collapse"> <i class="icon-pencil-case"></i>案例管理 </a>
             		<ul id="exampleItem" class="collapse list-unstyled">
             			<li><a class="icon-form" data-link="test.html" iframe="1">&nbsp&nbsp&nbsp&nbsp案例录入</a></li>
             			<li><a class="icon-rss-feed" data-link="test.html" iframe="1">&nbsp&nbsp&nbsp&nbsp案例统计</a></li>
             		</ul>
             </li>
                    
                   
           </ul>         
         
        
        </nav>
        <div class="content-inner" >
        	<section class="updates no-padding-top"style="min-height: 800px;">
          <!-- Page Header-->
          
          <div id="tabs" class="easyui-tabs " style="margin-top: 0px;top: 0px;" >
              
              
            </div>
         	
       
          
          <!-- Page Footer-->
          <footer class="main-footer">
            <div class="container-fluid">
              <div class="row">
                <div class="col-sm-6">
                  <p>Yang.Xing &copy; 2017-2019</p>
                </div>
                <div class="col-sm-6 text-right">
                  <p> Bootstrap+easyUI - 分类 <a href="#" title="" target="_blank">毕业设计</a></p>
                  <!-- Please do not remove the backlink to us unless you support further theme's development at https://bootstrapious.com/donate. It is part of the license conditions. Thank you for understanding :)-->
                </div>
              </div>
            </div>
          </footer>
         </section>
        </div>
      </div>
    </div>
    
    <!-- JavaScript files-->
    <script src="vendor/jquery/jquery.min.js"></script>
    <script src="vendor/popper.js/umd/popper.min.js"> </script>
    <script src="vendor/bootstrap/js/bootstrap.min.js"></script>
    <script src="vendor/jquery.cookie/jquery.cookie.js"> </script>
    <script src="vendor/chart.js/Chart.min.js"></script>
    <script src="vendor/jquery-validation/jquery.validate.min.js"></script>
    <script src="js/charts-home.js"></script>
    <script src="js/easyui-lang-zh_CN.js" ></script>
    <script src="js/jquery.easyui.min.js" ></script>
    <!-- Main File-->
    <script src="js/front.js"></script>
    <script type="text/javascript" src="js/getUrlParam.js" ></script>
  </body>
  <script type="text/javascript">
  	//获取url中的参数  需引入 getUrlParam.js
    		var username=UrlParm.parm("username"); 
    		if(username==""||username == undefined){//若未取到项目编号 关闭此选项卡
    			
    		}else{
    			$("#nickname").html(username);
    		}
  	
		
    var powers = new Map();
    var roles = new Map();
  	var maxTabs = 10;
  	//加载用户角色 权限
  		$.ajax({
              type:"get",
              url:"/login.spr/getPowers",
              contentType:"application/json",
              dataType: "json",
              data:{
                 
             				},
              success:function(data){
                  var dataObj=eval("("+data+")");

                  if(dataObj.result!="0000"){
                      alert(dataObj.msg);
                  }else{
                  var p = dataObj.params.powers;
                  var r = dataObj.params.roles;
									p.forEach(function(e){
										powers.set(e,"");
									});
									r.forEach(function(e){
										roles.set(e,"");
									});
									console.log(roles);
									console.log(powers);
                  	
		              }
                
		              
                  
              },
              error:function(){
              	
              	 alert("加载失败！");

              }
          });
          
  	
  	//左侧菜单样式初始化
  	$(".lt").bind('click',function(){
  		 var s = $(this).attr('aria-expanded');
  			if(s=='false'){
  				$(this).parent().attr('class','active');
  			}
  			if(s!='false'){
  				$(this).parent().attr('class','');
  			}
  				
  		});
  	/**
		* Name 选项卡初始化
		*/
		$('#tabs').tabs({
			tools:[{
				iconCls:'icon-close',
				border:false,
				handler:function(){
					var tab = $('#tabs');
					var index = tab.tabs('tabs').length;
					for(var i = index;i>0;i--){
						tab.tabs('close',i);
					}
					
				}
			}]
		});
		var dafaulttab = $(".defaulttab");
		addTabs(dafaulttab.text(),dafaulttab.parent().attr("data-link"),true,dafaulttab.attr('data-icon'));
  	
  	$('.collapse li').bind("click",function(){
  		var title = $(this).text();
  		var iframe = $(this).attr("iframe")==1?true:false;
  		var iconCls = $(this).attr('data-icon');
  		var url = $(this).attr("data-link");
  		addTabs(title,url,iframe,iconCls);
  	});
  	
  	function addTabs(title,url,iframe,iconCls){
  		var tabs = $("#tabs");
  		if(!tabs.tabs('exists',title)){
  			//设置选项卡面板最大打开数量
  			if(maxTabs>tabs.tabs('tabs').length){
  				var content = '<h1>test</h1>';
  				
  				tabs.tabs('add',{
  						title:title,
  						content:'<iframe src="'+url+'" style="min-height: 800px;width: 100%;"></iframe>',
							iconCls:iconCls,
							fit:true,
							closable:true
							
  				});
  			
  				
  			}else{
  				$.messager.alert('提示','选项卡超过最大数量！请先关闭其他标签');
  				 
  			}
  			
  		}
  		tabs.tabs('select',title);
  	}
  	function closeTab(title){
  		var tabs = $("#tabs");
  		tabs.tabs("close",title);
  		
  	}
  	function showAlert(msg){
  		alert(msg);
  	}
  	
  </script>
</html>